import ZbRequest from '../index'

export const addClass = (data) => ZbRequest.post('/class', data)
export const deleteClass = (id) => ZbRequest.delete('/class/' + id, {})
export const updateClass = (id, data) => ZbRequest.put('/class/' + id, data)
export const getClass = (data) => ZbRequest.get('/class', data)
export const getClassDetail = (id) => ZbRequest.get('/class/' + id, {})

export const getClassTeachers = (id) => ZbRequest.get('/class/teachers/' + id, {})